package br.com.orion.sga.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.orion.sga.model.dao.PlanoPagamentoDao;
import br.com.orion.sga.model.entities.PlanoPagamento;

@Service
public class PlanoPagamentoService {
	
	@Autowired
	private PlanoPagamentoDao planoPagamentoDao;
	
	/**
	 * @return all data of table plano_pagamento
	 */
	public List<PlanoPagamento> listAll() {
		
		return planoPagamentoDao.listAll();
	}

	/**
	 * getById
	 * @param idPlanoPagamento
	 * @return
	 */
	public PlanoPagamento getById(Integer idPlanoPagamento) {
		return planoPagamentoDao.getById(idPlanoPagamento);
	}
}
